package de.thw.web.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@Entity
public class Permission extends AbstractModel {

	protected String Name;

	@ManyToOne
	protected Website Website;

	protected boolean RequiredPassword;

	protected boolean RequiredSitePassword;

	protected boolean RequiredSystemPassword;

	// /////////////////////////////////////////////////////////////////////////////

	public String getName() {
		return this.Name;
	};

	public void setName(String name) {
		this.Name = name;
	};

	public Website getWebsite() {
		return this.Website;
	};

	public void setWebsite(Website site) {
		this.Website = site;
	};

	public boolean getRequiredPassword() {
		return this.RequiredPassword;
	};

	public void setRequiredPassword(boolean required) {
		this.RequiredPassword = required;
	};

	public boolean getRequiredSitePassword() {
		return this.RequiredSitePassword;
	};

	public void setRequiredSitePassword(boolean required) {
		this.RequiredSitePassword = required;
	};

	public boolean getRequiredSystemPassword() {
		return this.RequiredSystemPassword;
	};

	public void setRequiredSystemPassword(boolean required) {
		this.RequiredSystemPassword = required;
	};

};